const MyPromise = require("../template.js")

// 测试 then 的回调是异步的
function testThenAsync() {
  const promise = new MyPromise((resolve) => resolve("delay"))

  promise.then((value) => console.log(value))
  console.log("start")
}

testThenAsync()
